import styles from './index.less';

export default function Select(props: any) {
  const { executepalnCondition } = props;
  return (
    <div className={styles.tableBox}>
      <div className={styles.tableBoxHeader}>
        <div>鱼池</div>
        <div style={{ width: '30%' }}>执行设备</div>
        <div>执行时间</div>
        <div style={{ width: '20%' }}>操作</div>
      </div>
      <div className={`${styles.tableBoxbodayBox}`}>
        {executepalnCondition?.map((item: any) => (
          <div className={`${styles.tableBoxboday} ${item.timeState?styles.tableBoxbodayHui:''}`}>
            <div>{item.fishpondName}</div>
            <div style={{ width: '30%' }}>
              {item.deviceName ? item.deviceName : '-'}
            </div>
            <div>{item.executeTime}</div>
            <div style={{ width: '20%' }}>
              {item.executeContent ? item.executeContent : '-'}
            </div>
          </div>
        ))}
      </div>
    </div>
  );
}
